import redis

from Lib.Server import config


class DbRedis:
    def __init__(self):
        self.redis = redis.Redis(host=config.get("database", "redis_host"), port=config.get("database", "redis_port"),
                                 decode_responses=True, db=config.get('database', "redis_db"))
